using System;
using Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.Cliente.BusinessEntity;

namespace Sinacor.Servico.Bovespa.Cliente.Service.ServiceImplementation.Translator
{
    public static class TranslateBetweenConsultarInformacaoClienteRequestAndCliente
    {
        public static Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request.ConsultarInformacaoClienteRequest TranslateClienteToConsultarInformacaoClienteRequest(Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente from)
        {
            Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request.ConsultarInformacaoClienteRequest to = new Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request.ConsultarInformacaoClienteRequest();
            to.CodigoCliente = from.Codigo;
            to.Apelido = from.Apelido;
            return to;
        }

        public static Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente TranslateConsultarInformacaoClienteRequestToCliente(Sinacor.Servico.Bovespa.Cliente.Service.DataContract.Request.ConsultarInformacaoClienteRequest from)
        {
            Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente to = new Sinacor.Servico.Bovespa.Cliente.BusinessEntity.Cliente();
            to.Codigo = from.CodigoCliente;
            to.Apelido = from.Apelido;
            return to;
        }
    }
}

